clientDispatchData = function(data, rnd) {
    application.broadcastMsg("onServerData", data, rnd);
}

application.onConnect = function(client) {
    client.dispatchData = clientDispatchData;
    application.acceptConnection(client);
}
